<script src="<?= base_url(); ?>third_party/ckeditor/ckeditor.js"></script>

<div class="clear"> </div>
<div class="box_2">
    <div class="title reg bold"> 
        <span class="inline-block align_left fleft" style="width: 590px"><h2 class="color_2"> Reviews of <?= $this->management_model->get_version('CAR', $car_version)->version; ?></h2></span> 
        <span class="color_3"><a href="javascript:history.back()">Go Back</a></span>
    </div>
    

    <div id="inner">
        <?php if (!$review) { ?>
            Sorry! No Review Found ......
        <?php } else { ?>

            <ul>
                <?php foreach ($review as $review) : ?>
                <?php $rev = strip_tags($review->description);?> 
                    <li style="margin-bottom:  10px">
                        <span class="gavatar"><img src="<?= base_url(); ?>assets/images/gravatar-blue.jpg" height="40" width="40" alt="<?= $review->name; ?>" align="top"  /> </span>
                        
                        <span class="color_2 bold"><?= $review->name; ?> </span> 
                        <span class="fright"><img src="<?= base_url() ?>assets/images/stars-<?= $review->value; ?>.png" 
                             alt="<?= $this->pickup_model->get_pickup_info(14, $review->value)->description; ?>"   /> 
                        </span>
                        <span class="font_1">posted on <?= $review->posted_on; ?> </span>
                                                
                        <div><?= substr($rev,0,100); ?> 
                            <a href="<?= base_url(); ?>review/detail/<?= url_title($review->description,'-',TRUE); ?>/<?= $review->id; ?>" class="color_3 bold"> ..view detail </a>
                        </div>
                        
                    </li>
                    <div class="clear"></div>
                <?php endforeach; ?>
            </ul>

        <?php } ?>
    </div>
    

</div> <!-- End of Box_2 -->




